package com.googlecode.biglog.model;

import java.util.Date;

import org.dbist.annotation.Column;
import org.dbist.annotation.Table;

import com.googlecode.biglog.annotation.LogClass;
import com.googlecode.biglog.annotation.LogLevel;
import com.googlecode.biglog.annotation.LogLine;
import com.googlecode.biglog.annotation.LogMessage;
import com.googlecode.biglog.annotation.LogMethod;
import com.googlecode.biglog.annotation.LogThread;
import com.googlecode.biglog.annotation.LogTime;

@Table(name = "logs")
public class Log {
	public Log() {
		super();
	}
	public Log(String message) {
		setMessage(message);
	}

	public String toLogString() {
		return null;
	}
	@Column(name = "log_id")
	private String id;
	@LogTime
	@Column(name = "log_time")
	private Date time;
	@LogLevel
	@Column(name = "log_level")
	private String level;
	@LogThread
	@Column(name = "log_thread")
	private String thread;
	@LogClass
	@Column(name = "log_class")
	private String clazz;
	@LogMethod
	@Column(name = "log_method")
	private String method;
	@LogLine
	@Column(name = "log_line")
	private Integer line;
	@LogMessage
	@Column(name = "log_message")
	private String message;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getLevel() {
		return level;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	public String getThread() {
		return thread;
	}
	public void setThread(String thread) {
		this.thread = thread;
	}
	public String getClazz() {
		return clazz;
	}
	public void setClazz(String clazz) {
		this.clazz = clazz;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public Integer getLine() {
		return line;
	}
	public void setLine(Integer line) {
		this.line = line;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
}
